home *** CD-ROM | disk | FTP | other *** search
- global page, maxvideo, minvideo, videonumber
-
- on mouseWithin me
- mynumber = me.spriteNum
- case mynumber of
- 44:
- i = 28
- repeat while i <= (28 + videonumber - 1)
- set the locH of sprite i to the locH of sprite i + 3
- if the locH of sprite i > (minvideo + ((i - 28) * 134)) then
- set the locH of sprite i to minvideo + ((i - 28) * 134)
- end if
- i = 1 + i
- end repeat
- 45:
- i = 28
- repeat while i <= (28 + videonumber - 1)
- set the locH of sprite i to the locH of sprite i - 3
- if the locH of sprite i < (maxvideo + ((i - 28) * 134)) then
- set the locH of sprite i to maxvideo + ((i - 28) * 134)
- end if
- i = 1 + i
- end repeat
- end case
- end
-
- on mouseUp me
- mynumber = me.spriteNum
- case mynumber of
- 44:
- repeat while the locH of sprite 28 <= (minvideo - 2)
- put the locH of sprite 28
- i = 28
- repeat while i <= (28 + videonumber - 1)
- adjust = (minvideo + ((i - 28) * 134) - the locH of sprite i) / 4
- if adjust = 0 then
- adjust = 1
- end if
- set the locH of sprite i to the locH of sprite i + adjust
- i = 1 + i
- end repeat
- updateStage()
- end repeat
- i = 28
- repeat while i <= (28 + videonumber - 1)
- set the locH of sprite i to minvideo + ((i - 28) * 134)
- i = 1 + i
- end repeat
- updateStage()
- 45:
- repeat while the locH of sprite 28 >= (maxvideo + 2)
- i = 28
- repeat while i <= (28 + videonumber - 1)
- adjust = (maxvideo + ((i - 28) * 134) - the locH of sprite i) / 4
- if adjust = 0 then
- adjust = -1
- end if
- set the locH of sprite i to the locH of sprite i + adjust
- i = 1 + i
- end repeat
- updateStage()
- end repeat
- i = 28
- repeat while i <= (28 + videonumber - 1)
- set the locH of sprite i to maxvideo + ((i - 28) * 134)
- i = 1 + i
- end repeat
- updateStage()
- end case
- end
-
- on mouseEnter me
- cursor([1, 2])
- end
-
- on mouseLeave me
- cursor(0)
- end
-